<!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>登陆</title>

<!-- Favicons -->
    <link th:href="@{/libs/niceadmin/assets/img/favicon.png}" rel="icon">
    <link th:href="@{/libs/niceadmin/assets/img/apple-touch-icon.png}" rel="apple-touch-icon">

    <!-- Google Fonts -->



    <!-- Vendor CSS Files -->
    <link th:href="@{/libs/niceadmin/assets/vendor/bootstrap/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/libs/niceadmin/assets/vendor/bootstrap-icons/bootstrap-icons.css}" rel="stylesheet">
    <link th:href="@{/libs/niceadmin/assets/vendor/boxicons/css/boxicons.min.css}" rel="stylesheet">
    <link th:href="@{/libs/niceadmin/assets/vendor/quill/quill.snow.css}" rel="stylesheet">
    <link th:href="@{/libs/niceadmin/assets/vendor/quill/quill.bubble.css}" rel="stylesheet">
    <link th:href="@{/libs/niceadmin/assets/vendor/remixicon/remixicon.css}" rel="stylesheet">
    <link th:href="@{/libs/niceadmin/assets/vendor/simple-datatables/style.css}" rel="stylesheet">

    <!-- Template Main CSS File -->
    <link th:href="@{/libs/niceadmin/assets/css/style.css}" rel="stylesheet">

    <link rel="stylesheet" th:href="@{/libs/bootstrap-table/bootstrap-table.min.css}">
    <link rel="stylesheet" th:href="@{/css/admin/loginpage.css}">
</head>
<body>

    
  <main>
    <div class="container">

      <section class="section register min-vh-100 d-flex flex-column align-items-center justify-content-center py-4">
        <div class="container">

          <div id="liveAlertPlaceholder"></div>

          <div class="row justify-content-center">
            <div class="col-lg-4 col-md-6 d-flex flex-column align-items-center justify-content-center">

              <div class="d-flex justify-content-center py-4">
                <a href="index.html" class="logo d-flex align-items-center w-auto">
                  <img th:src="@{/libs/niceadmin/assets/img/logo.png}" alt="">
                  <span class="d-none d-lg-block">校园管理系统</span>
                </a>
              </div><!-- End Logo -->

              <div class="card mb-3">

                <div class="card-body">

                  <div class="pt-4 pb-2">
                    <h5 class="card-title text-center pb-0 fs-4">Login to Your Account</h5>
                    <p class="text-center small">Enter your username & password to login</p>
                  </div>

                  <form class="row g-3 needs-validation" novalidate>

                    <div class="col-12">
                      <label for="yourUsername" class="form-label">Username</label>
                      <div class="input-group has-validation">
                        <span class="input-group-text" id="inputGroupPrepend">@</span>
                        <input type="text" name="accNo" class="form-control" id="accNo" required>
                        <div class="invalid-feedback">Please enter your username.</div>
                      </div>
                    </div>

                    <div class="col-12">
                      <label for="yourPassword" class="form-label">Password</label>
                      <input type="password" name="password" class="form-control" id="password" required>
                      <div class="invalid-feedback">Please enter your password!</div>
                    </div>

                    <div class="col-12">
                      <div class="form-check">
                        <input class="form-check-input" type="checkbox" name="remember" value="true" id="rememberMe">
                        <label class="form-check-label" for="rememberMe">Remember me</label>
                      </div>
                    </div>
                    <div class="col-12">
                      <button onclick="login()" class="btn btn-primary w-100" type="button">登录</button>
                    </div>
                  </form>

                </div>
              </div>

              </div>

            </div>
          </div>
        </div>

      </section>

    </div>
    <!--隐藏请求地址 BEGIN 给AJAX用 -->
        <div>
            <input id="addr" hidden
                th:value="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()} " />
        </div>
        <!--隐藏请求地址 END -->
  </main><!-- End #main -->

    <a th:href="@{/libs/niceadmin/#}" class="back-to-top d-flex align-items-center justify-content-center"><i
            class="bi bi-arrow-up-short"></i></a>

    <!-- Vendor JS Files -->
    <script th:src="@{/libs/jquery/jquery-3.5.1.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/apexcharts/apexcharts.min.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/bootstrap/js/bootstrap.bundle.min.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/chart.js/chart.min.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/echarts/echarts.min.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/quill/quill.min.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/simple-datatables/simple-datatables.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/tinymce/tinymce.min.js}"></script>
    <script th:src="@{/libs/niceadmin/assets/vendor/php-email-form/validate.js}"></script>
    <script th:src="@{/libs/bootstrap/bootstrap4dist/js/bootstrap.js}"></script>
    <script th:src="@{/libs/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/libs/bootstrap-table/bootstrap-table-zh-CN.min.js}"></script>

    <!-- Template Main JS File -->
    <script th:src="@{/libs/niceadmin/assets/js/main.js}"></script>
    <script th:src="@{/js/admin/loginpage.js}"></script>

</body>
</html>